package io.renren.dao;

import io.renren.entity.BmInfoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by ThinkPad on 2018/11/12.
 */
public interface OnlineStudyDao {

    Map<String, Object> queryXybmInfo(@Param("userId") String userId);

    Integer querySubscribeInfo(String userId);

    List<Map<String, Object>> querySubscribeDateList(@Param("startdate") String startdate,
                                                     @Param("studytype") String studytype,
                                                     @Param("address") String address);


    Map<String, Object> queryCreditscore(@Param("userid") String userId);

    Map<String, Object> queryBmxx(@Param("userid") String userId);

    void saveBmInfo(BmInfoEntity bmInfoEntity);

    Integer queryDryxSfxw(@Param("xy_id") String xy_id);

    void updateSfxw(Map<String, String> paramMap);

    Integer queryXxjlLearningTime(Map<String,Object> paramMap);

    List<Map<String,String>> queryStudyAddress();

    void updateAvatar(Map<String, Object> updateAvatar);

    List<Map> queryXxjlById(String xy_id);

    List<Map> queryVideoList();

    void saveStudyImg(Map paramMap);

    void updateDryx(Map paramMap);

    void insertExam(Map paramMap);

    Map getQuestionByNum(@Param("startNum") int startNum);

    void insertExamDetail(Map paramMap);

    Map getQuestionById(@Param("id") String examdid);

    void updateExamScore(Map paramMap);

    void delDiscontentedXxjl(Map paramMap);

    Map queryXxjlLatest(String xy_id);

    void insertXxjl(Map paramMap);

    List<Map> queryXxjlImage(@Param("xy_id") String xy_id,@Param("video_id") String video_id);
}
